From: Paul Eggert Date: Sun, 10 Apr 2011 18:02:59 +0000 (-0700) Subject: * editfns.c (Fformat): Remove unreachable code. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~4132^2~66 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=939bb039e17397865c502ae8b2f86c3e974813fd;p=emacs.git * editfns.c (Fformat): Remove unreachable code. 2011-04-10 Paul Eggert --- diff --git a/src/ChangeLog b/src/ChangeLog index 8ee6673fff3..88715d13b12 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-04-10 Paul Eggert + + * editfns.c (Fformat): Remove unreachable code. + 2011-04-10 Paul Eggert Fix more problems found by GCC 4.6.0's static checks. diff --git a/src/editfns.c b/src/editfns.c index e754a074ba8..85b30de6975 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -3802,7 +3802,7 @@ usage: (format STRING &rest OBJECTS) */) if (*format == 'c') { if (! ASCII_CHAR_P (XINT (args[n])) - /* Note: No one can remeber why we have to treat + /* Note: No one can remember why we have to treat the character 0 as a multibyte character here. But, until it causes a real problem, let's don't change it. */ @@ -3816,12 +3816,6 @@ usage: (format STRING &rest OBJECTS) */) args[n] = Fchar_to_string (args[n]); thissize = SBYTES (args[n]); } - else if (! ASCII_BYTE_P (XINT (args[n])) && multibyte) - { - args[n] - = Fchar_to_string (Funibyte_char_to_multibyte (args[n])); - thissize = SBYTES (args[n]); - } } } else if (FLOATP (args[n]) && *format != 's')